package com.syeet.gulimall.order.to;

import com.syeet.gulimall.order.entity.OrderEntity;
import com.syeet.gulimall.order.entity.OrderItemEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 完整订单信息，包括订单表信息和订单项表信息，应付价格，运费
 * @author xhl
 * @date 2023/5/26
 */
@Data
public class OrderCreateTo {
    private OrderEntity order;
    private List<OrderItemEntity> orderItems;
    //应付价格
    private BigDecimal payPrice;
    //运费
    private BigDecimal fare;

}
